﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 考生
/// </summary>
[SugarTable("Kaosheng","考生")]
[SugarIndex("unique_kaosheng_kaoshiId_studentId", nameof(Kaosheng.KaoshiId), OrderByType.Desc, nameof(Kaosheng.StudentId), OrderByType.Desc, true)]
public class Kaosheng  : EntityBase
{
    /// <summary>
    /// 考试
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "KaoshiId", ColumnDescription = "考试", Length = 0)]
    public long KaoshiId { get; set; }
    
    /// <summary>
    /// 班级
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "BanjiId", ColumnDescription = "班级", Length = 0)]
    public long BanjiId { get; set; }

    /// <summary>
    /// 教学班
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "JiaoxueBanId", ColumnDescription = "教学班", Length = 0)]
    public long JiaoxueBanId { get; set; }

    /// <summary>
    /// 学生
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "StudentId", ColumnDescription = "学生", Length = 0)]
    public long StudentId { get; set; }
    
    /// <summary>
    /// 考号
    /// </summary>
    [SugarColumn(ColumnName = "KaoHao", ColumnDescription = "考号")]
    public int? KaoHao { get; set; }
    
    /// <summary>
    /// 试场号
    /// </summary>
    [SugarColumn(ColumnName = "ShiChangNum", ColumnDescription = "试场号", Length = 32)]
    public string? ShiChangNum { get; set; }
    
    /// <summary>
    /// 座位号
    /// </summary>
    [SugarColumn(ColumnName = "ZuoweiHao", ColumnDescription = "座位号", Length = 32)]
    public string? ZuoweiHao { get; set; }
    
    /// <summary>
    /// 准考证号
    /// </summary>
    [SugarColumn(ColumnName = "ZhunkaoZhenghao", ColumnDescription = "准考证号", Length = 32)]
    public string? ZhunkaoZhenghao { get; set; }
    
    /// <summary>
    /// 参与统计
    /// </summary>
    [SugarColumn(ColumnName = "Active", ColumnDescription = "参与统计")]
    public bool? Active { get; set; }
    
    /// <summary>
    /// 总分
    /// </summary>
    [SugarColumn(ColumnName = "ZongFen", ColumnDescription = "总分")]
    public double? ZongFen { get; set; }
    
    /// <summary>
    /// 班级名次
    /// </summary>
    [SugarColumn(ColumnName = "BanjiMC", ColumnDescription = "班级名次")]
    public int? BanjiMC { get; set; }
    
    /// <summary>
    /// 年级名次
    /// </summary>
    [SugarColumn(ColumnName = "JiMC", ColumnDescription = "年级名次")]
    public int? JiMC { get; set; }
    
}
